import 'package:base/base_lib.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:login/res/images.dart';
import 'package:login/router.dart';

import '../res/lang.dart';

class LoginSignUpPage extends StatelessWidget {
  const LoginSignUpPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        decoration: LoginImageRes.ic_sign_up_bg.realBg(fit: BoxFit.fill),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          children: <Widget>[
            40.height,
            Align(
                alignment: Alignment.centerLeft,
                child: Padding(
                    padding: 14.pl,
                    child: GestureDetector(
                        child: const Icon(
                          Icons.close,
                          color: KColors.c_FFFFFF,
                        ),
                        onTap: () => Get.back()))),
            const Expanded(child: Center(child: Icon(Icons.phone))),
            Text(LoginStrRes.start_your_adventure,
                style: 16.toTextStyle(color: KColors.c_FFFFFF)),
            18.height,
            Button(
                    color: KColors.primaryColor,
                    text: LoginStrRes.singUp,
                    textStyle: 16.toTextStyle(color: KColors.c_FFFFFF),
                    onTap: () {})
                .paddingOnly(left: 12.w, right: 12.w),
            8.height,
            Button(
                text: LoginStrRes.login,
                borderWidth: 1.w,
                borderColor: KColors.c_FFFFFF,
                textStyle: 16.toTextStyle(color: KColors.c_FFFFFF),
                onTap: () {
                  LoginRouter.goLogin();
                }).paddingOnly(left: 12.w, right: 12.w),
            40.height
          ],
        ),
      ),
    );
  }
}
